import { changeArchiving, deleteMaster } from '../api'
export function changeArchivingStatus(ctx) {
  const row = ctx.props.row
  changeArchiving({
    "consultId": row.consultId,
    "archivingStatus": row.archivingStatus ? 0 : 1
  }).then(() => {
    ctx._c.dispatch('ListPage', 'getData')
  })
}

export function removeMaste(ctx) {
  const row = ctx.props.row
  deleteMaster({
    "consultId": row.consultId
  }).then(() => {
    ctx._c.dispatch('ListPage', 'getData')
  })
}